package service;

import java.util.ArrayList;

import dao.MovieDao;
import entity.Movie;

public class MovieService {
	
	public MovieDao dao = new MovieDao();

	public void add(Movie movie) {		
		dao.add(movie); 		
	}
	
	public void update(Movie movie,String mid){
		dao.update(movie, mid);
		
	}
	
	public ArrayList<Movie> findone(int idd) {
		return dao.findOne(idd);
	}
	
	public ArrayList<Movie> find(String thing) {
		return dao.find(thing);
	}
	
	public void purchase(String mid,String uid) {
		dao.purchase(mid, uid);
	}
	
	public void delete(String mid) {
		dao.delete(mid);
	}

}
